-- GENERATED SPELL FOR [Siltfin Oracle] --


function spell0_17191(pUnit, Event) --@Lightning Shield,n/a--
pUnit:FullCastSpellOnTarget(12550,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17191', 0, 1)
end

function spell1_17191(pUnit, Event) --@Wrath,n/a--
pUnit:FullCastSpellOnTarget(9739,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17191', 2000, 1)
end

function Sorts_17191(pUnit, Event)
local choix_sorts_17191 = math.random(0, 1)
if choix_sorts_17191 == 0 then
pUnit:RegisterEvent('spell0_17191', 1, 1)
end
if choix_sorts_17191 == 1 then
pUnit:RegisterEvent('spell1_17191', 1, 1)
end
end

function mob17191_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17191', math.random(1500, 3000), 1)
end

function mob17191_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17191_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17191_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17191, 1, 'mob17191_Action')
RegisterUnitEvent(17191, 2, 'mob17191_Leave')
RegisterUnitEvent(17191, 3, 'mob17191_Kill')
RegisterUnitEvent(17191, 4, 'mob17191_Die')
